Socket
Socket
Sign inDemoInstall

@any-touch/recognizer

Package Overview
Dependencies
1
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @any-touch/recognizer

any-touch的识别器的基类.


Version published
Weekly downloads
27
increased by42.11%
Maintainers
1
Install size
20.0 kB
Created
Weekly downloads
 

Readme

Source

@any-touch/recognizer (内部模块)

所有识别器的基类, 主要管理识别器内部的状态.

说明
possible表示当前还"未识别"
start"拖拽类"手势(pan/pinch/rotate等)中表示"第一次识别."
move"拖拽类"手势中表示"识别后移动中"
end"拖拽类"手势中表示"有触点离开,即手势结束"
cancel手势识别后,发生事件中断,比如"来电话","浏览器最小化"等.
failed表示"识别失败", 比如识别tap的时候,触点在250ms内没有离开屏幕等
recognized表示"已识别", 区别于"拖拽类"手势, 用在"瞬发"识别的手势,比如tap/press/swipe.

FAQs

Last updated on 25 Nov 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc